from test1.tornado_fetcher import Fetcher
import datetime
from time import sleep
import re

fetcher = Fetcher()
# res = fetcher.phantomjs_fetch('http://wenshu.court.gov.cn')['cookies']['ccpassport']

# a = res['cookies']['ccpassport']
# print a


while True:
    res = fetcher.phantomjs_fetch('http://wenshu.court.gov.cn')['cookies']['ccpassport']
    #
    # f=open('cookie.txt','w')
    # f.write(res)
    # f.close()
    print res
    sleep(1)
